-- GENERATED SPELL FOR [General Colbatann] --


function spell0_10196(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_10196', 621, 1)
end

function spell1_10196(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_10196', 30271, 1)
end

function spell2_10196(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10196', 30260, 1)
end

function Sorts_10196(pUnit, Event)
local choix_sorts_10196 = math.random(0, 2)
if choix_sorts_10196 == 0 then
pUnit:RegisterEvent('spell0_10196', 1, 1)
end
if choix_sorts_10196 == 1 then
pUnit:RegisterEvent('spell1_10196', 1, 1)
end
if choix_sorts_10196 == 2 then
pUnit:RegisterEvent('spell2_10196', 1, 1)
end
end

function mob10196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10196', math.random(1500, 3000), 1)
end

function mob10196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10196, 1, 'mob10196_Action')
RegisterUnitEvent(10196, 2, 'mob10196_Leave')
RegisterUnitEvent(10196, 3, 'mob10196_Kill')
RegisterUnitEvent(10196, 4, 'mob10196_Die')
